#ifndef _TYPEDEF_H_
#define _TYPEDEF_H_


typedef enum{
	true = 1,
	false = 0
}bool;
#define TRUE	1
#define FALSE	0

#define Limit(c) ((c<0)?-1:1)
#define isreal_(c) (('0'<=c)&&(c<='9') ||(c == '.')||(c == '+')||(c == '-'))
#define isascii_(c)  ((unsigned)(c) < 128)
#define isdigit_(c)	((c<0x3a)&&(c>0x2F))
#define isupper_(c)	((c>('A'-1))&&(c<('Z'+1)))
#define PI		3.1415926535897932385

typedef enum{
__00000000B= 0x0,
__00000001B= 0x1,
__00000010B= 0x2,
__00000011B= 0x3,
__00000100B= 0x4,
__00000101B= 0x5,
__00000110B= 0x6,
__00000111B= 0x7,
__00001000B= 0x8,
__00001001B= 0x9,
__00001010B= 0xa,
__00001011B= 0xb,
__00001100B= 0xc,
__00001101B= 0xd,
__00001110B= 0xe,
__00001111B= 0xf,
__00010000B= 0x10,
__00010001B= 0x11,
__00010010B= 0x12,
__00010011B= 0x13,
__00010100B= 0x14,
__00010101B= 0x15,
__00010110B= 0x16,
__00010111B= 0x17,
__00011000B= 0x18,
__00011001B= 0x19,
__00011010B= 0x1a,
__00011011B= 0x1b,
__00011100B= 0x1c,
__00011101B= 0x1d,
__00011110B= 0x1e,
__00011111B= 0x1f,
__00100000B= 0x20,
__00100001B= 0x21,
__00100010B= 0x22,
__00100011B= 0x23,
__00100100B= 0x24,
__00100101B= 0x25,
__00100110B= 0x26,
__00100111B= 0x27,
__00101000B= 0x28,
__00101001B= 0x29,
__00101010B= 0x2a,
__00101011B= 0x2b,
__00101100B= 0x2c,
__00101101B= 0x2d,
__00101110B= 0x2e,
__00101111B= 0x2f,
__00110000B= 0x30,
__00110001B= 0x31,
__00110010B= 0x32,
__00110011B= 0x33,
__00110100B= 0x34,
__00110101B= 0x35,
__00110110B= 0x36,
__00110111B= 0x37,
__00111000B= 0x38,
__00111001B= 0x39,
__00111010B= 0x3a,
__00111011B= 0x3b,
__00111100B= 0x3c,
__00111101B= 0x3d,
__00111110B= 0x3e,
__00111111B= 0x3f,
__01000000B= 0x40,
__01000001B= 0x41,
__01000010B= 0x42,
__01000011B= 0x43,
__01000100B= 0x44,
__01000101B= 0x45,
__01000110B= 0x46,
__01000111B= 0x47,
__01001000B= 0x48,
__01001001B= 0x49,
__01001010B= 0x4a,
__01001011B= 0x4b,
__01001100B= 0x4c,
__01001101B= 0x4d,
__01001110B= 0x4e,
__01001111B= 0x4f,
__01010000B= 0x50,
__01010001B= 0x51,
__01010010B= 0x52,
__01010011B= 0x53,
__01010100B= 0x54,
__01010101B= 0x55,
__01010110B= 0x56,
__01010111B= 0x57,
__01011000B= 0x58,
__01011001B= 0x59,
__01011010B= 0x5a,
__01011011B= 0x5b,
__01011100B= 0x5c,
__01011101B= 0x5d,
__01011110B= 0x5e,
__01011111B= 0x5f,
__01100000B= 0x60,
__01100001B= 0x61,
__01100010B= 0x62,
__01100011B= 0x63,
__01100100B= 0x64,
__01100101B= 0x65,
__01100110B= 0x66,
__01100111B= 0x67,
__01101000B= 0x68,
__01101001B= 0x69,
__01101010B= 0x6a,
__01101011B= 0x6b,
__01101100B= 0x6c,
__01101101B= 0x6d,
__01101110B= 0x6e,
__01101111B= 0x6f,
__01110000B= 0x70,
__01110001B= 0x71,
__01110010B= 0x72,
__01110011B= 0x73,
__01110100B= 0x74,
__01110101B= 0x75,
__01110110B= 0x76,
__01110111B= 0x77,
__01111000B= 0x78,
__01111001B= 0x79,
__01111010B= 0x7a,
__01111011B= 0x7b,
__01111100B= 0x7c,
__01111101B= 0x7d,
__01111110B= 0x7e,
__01111111B= 0x7f,
__10000000B= 0x80,
__10000001B= 0x81,
__10000010B= 0x82,
__10000011B= 0x83,
__10000100B= 0x84,
__10000101B= 0x85,
__10000110B= 0x86,
__10000111B= 0x87,
__10001000B= 0x88,
__10001001B= 0x89,
__10001010B= 0x8a,
__10001011B= 0x8b,
__10001100B= 0x8c,
__10001101B= 0x8d,
__10001110B= 0x8e,
__10001111B= 0x8f,
__10010000B= 0x90,
__10010001B= 0x91,
__10010010B= 0x92,
__10010011B= 0x93,
__10010100B= 0x94,
__10010101B= 0x95,
__10010110B= 0x96,
__10010111B= 0x97,
__10011000B= 0x98,
__10011001B= 0x99,
__10011010B= 0x9a,
__10011011B= 0x9b,
__10011100B= 0x9c,
__10011101B= 0x9d,
__10011110B= 0x9e,
__10011111B= 0x9f,
__10100000B= 0xa0,
__10100001B= 0xa1,
__10100010B= 0xa2,
__10100011B= 0xa3,
__10100100B= 0xa4,
__10100101B= 0xa5,
__10100110B= 0xa6,
__10100111B= 0xa7,
__10101000B= 0xa8,
__10101001B= 0xa9,
__10101010B= 0xaa,
__10101011B= 0xab,
__10101100B= 0xac,
__10101101B= 0xad,
__10101110B= 0xae,
__10101111B= 0xaf,
__10110000B= 0xb0,
__10110001B= 0xb1,
__10110010B= 0xb2,
__10110011B= 0xb3,
__10110100B= 0xb4,
__10110101B= 0xb5,
__10110110B= 0xb6,
__10110111B= 0xb7,
__10111000B= 0xb8,
__10111001B= 0xb9,
__10111010B= 0xba,
__10111011B= 0xbb,
__10111100B= 0xbc,
__10111101B= 0xbd,
__10111110B= 0xbe,
__10111111B= 0xbf,
__11000000B= 0xc0,
__11000001B= 0xc1,
__11000010B= 0xc2,
__11000011B= 0xc3,
__11000100B= 0xc4,
__11000101B= 0xc5,
__11000110B= 0xc6,
__11000111B= 0xc7,
__11001000B= 0xc8,
__11001001B= 0xc9,
__11001010B= 0xca,
__11001011B= 0xcb,
__11001100B= 0xcc,
__11001101B= 0xcd,
__11001110B= 0xce,
__11001111B= 0xcf,
__11010000B= 0xd0,
__11010001B= 0xd1,
__11010010B= 0xd2,
__11010011B= 0xd3,
__11010100B= 0xd4,
__11010101B= 0xd5,
__11010110B= 0xd6,
__11010111B= 0xd7,
__11011000B= 0xd8,
__11011001B= 0xd9,
__11011010B= 0xda,
__11011011B= 0xdb,
__11011100B= 0xdc,
__11011101B= 0xdd,
__11011110B= 0xde,
__11011111B= 0xdf,
__11100000B= 0xe0,
__11100001B= 0xe1,
__11100010B= 0xe2,
__11100011B= 0xe3,
__11100100B= 0xe4,
__11100101B= 0xe5,
__11100110B= 0xe6,
__11100111B= 0xe7,
__11101000B= 0xe8,
__11101001B= 0xe9,
__11101010B= 0xea,
__11101011B= 0xeb,
__11101100B= 0xec,
__11101101B= 0xed,
__11101110B= 0xee,
__11101111B= 0xef,
__11110000B= 0xf0,
__11110001B= 0xf1,
__11110010B= 0xf2,
__11110011B= 0xf3,
__11110100B= 0xf4,
__11110101B= 0xf5,
__11110110B= 0xf6,
__11110111B= 0xf7,
__11111000B= 0xf8,
__11111001B= 0xf9,
__11111010B= 0xfa,
__11111011B= 0xfb,
__11111100B= 0xfc,
__11111101B= 0xfd,
__11111110B= 0xfe,
__11111111B= 0xff
} BIN8;

#endif